﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StackExchangeRedis;

namespace RedisPublish
{
    class Program
    {
        static void Main(string[] args)
        {
            var redisHelper = new RedisHelper();
            Console.WriteLine("请输入发送通道");
            var publish = Console.ReadLine();
            while (true)
            {
                Console.WriteLine("请输入发送消息");
                redisHelper.Publish(publish, Console.ReadLine());
                Console.WriteLine($"消息：{publish}，发送成功：");
            }

        }
    }
}
